<template>
	<view v-html="content"></view>
</template>

<script>
	const Api = require('../../utils/api.js');
	const request = require('../../utils/request.js');
	export default {
		data() {
			return {
				content: ''
			}
		},
		onLoad(options){
			// this.content = JSON.parse(decodeURIComponent(options.content))
			this.getAgreement()
			
		},
		methods: {
			getAgreement() {
				request.http(
				{
					url: Api.agreement,
					type: 'GET',
					header: {
						// 'content-type': 'application/x-www-form-urlencoded',
						//  'token':uni.getStorageSync('token'),
					},
					data: {},
					}).then(result=>{
						this.content = result.data.privacy_agreement
					})
			},
		}
	}
</script>

<style>
</style>